<?php
/*
 * base64_encode and base64_decode is used where we want to encode and decode original string
 * */

$string = "Hello";
$encrypt =  base64_encode($string);
var_dump($encrypt);
$decrypt = base64_decode($encrypt);
var_dump($decrypt);


$string = "This is Hello and World in PHP";
$encrypt =  base64_encode($string);
var_dump($encrypt);
$decrypt = base64_decode($encrypt);
var_dump($decrypt);

